import os

import pytest

# 获取项目根目录
project_root = os.path.dirname(os.path.abspath(__file__))
# 获取数据绝对路径
datas_path = os.path.join(project_root, './datas.xlsx')


if __name__ == '__main__':
    pytest.main(['-vs', './testcases', '--alluredir=./json_report'])
    os.system('allure generate ./json_report -o ./html_report --clean')
